<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="创建周期性备份（废弃）">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="ZH-CN_TOPIC_0000001792503842">
<meta name="DC.Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>创建周期性备份（废弃）</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="ZH-CN_TOPIC_0000001792503842"></a><a name="ZH-CN_TOPIC_0000001792503842"></a>

<h1 class="topictitle1">创建周期性备份（废弃）</h1>
<div><p>将需要保护的资源关联到指定SLA策略，系统将对这些资源按照SLA策略进行保护。</p>
<div class="section" id="ZH-CN_TOPIC_0000001792503842__section31504516166"><h4 class="sectiontitle">注意事项</h4><p id="ZH-CN_TOPIC_0000001792503842__p5298101017162"><span id="ZH-CN_TOPIC_0000001792503842__ph259092114816">全量备份失败后，如果下一次备份是日志备份，由于日志备份依赖上一次成功的全量备份副本，该日志备份任务将失败。此时，请手动执行一次全量备份。</span></p>
</div>
<div class="section"><h4 class="sectiontitle">操作步骤</h4><ol><li><span>选择<span class="uicontrol" id="ZH-CN_TOPIC_0000001792503842__zh-cn_topic_0000001839142377_uicontrol21435597359">“<span id="ZH-CN_TOPIC_0000001792503842__zh-cn_topic_0000001839142377_text4379114911434">保护</span> &gt; 数据库 &gt; DB2”</span>。</span></li><li id="ZH-CN_TOPIC_0000001792503842__li12571069312"><span>在<span class="uicontrol" id="ZH-CN_TOPIC_0000001792503842__uicontrol34952023165718">“<span id="ZH-CN_TOPIC_0000001792503842__text7900152503211">数据库</span>”</span>页签，选择需要保护的数据库，单击<span class="uicontrol" id="ZH-CN_TOPIC_0000001792503842__uicontrol851716476568">“<span id="ZH-CN_TOPIC_0000001792503842__text5546154284118">保护</span>”</span>。</span><p><p id="ZH-CN_TOPIC_0000001792503842__p1478765116562">您也可以勾选多个数据库进行批量保护。</p>
</p></li><li id="ZH-CN_TOPIC_0000001792503842__li343674154015"><span>选择SLA。</span><p><p id="ZH-CN_TOPIC_0000001792503842__p33248794210">您也可以单击<span class="uicontrol" id="ZH-CN_TOPIC_0000001792503842__uicontrol744210206420">“<span id="ZH-CN_TOPIC_0000001792503842__text1460532344618">创建</span>”</span>，创建新的SLA。</p>
</p></li><li><span>配置数据库备份高级参数。</span><p><div class="p">相关参数说明如<a href="#ZH-CN_TOPIC_0000001792503842__table354613271506">表1</a>所示。
<div class="tablenoborder"><a name="ZH-CN_TOPIC_0000001792503842__table354613271506"></a><a name="table354613271506"></a><table cellpadding="4" cellspacing="0" summary="" id="ZH-CN_TOPIC_0000001792503842__table354613271506" frame="border" border="1" rules="all"><caption><b>表1 </b>数据库备份高级参数说明</caption><colgroup><col style="width:21.93%"><col style="width:78.07%"></colgroup><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" width="21.93%" id="mcps1.3.3.2.4.2.1.2.2.3.1.1"><p>参数</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="78.07%" id="mcps1.3.3.2.4.2.1.2.2.3.1.2"><p>说明</p>
</th>
</tr>
</thead>
<tbody><tr><td class="cellrowborder" valign="top" width="21.93%" headers="mcps1.3.3.2.4.2.1.2.2.3.1.1 "><p><span>备份前执行脚本</span></p>
</td>
<td class="cellrowborder" rowspan="3" valign="top" width="78.07%" headers="mcps1.3.3.2.4.2.1.2.2.3.1.2 "><p>您可以根据实际需求，配置“<span>备份前执行脚本</span>”、“<span>备份成功执行脚本</span>”和“<span>备份失败执行脚本</span>”，当备份任务事件中出现“开始执行前置任务”提示后，配置的脚本会在对应场景下执行。不同操作系统对脚本的格式要求不同，具体请参考<a href="zh-cn_topic_0000001929749328.html">不同操作系统脚本格式要求</a>。</p>
<div class="p">此处请输入脚本的绝对路径和名称，并确保登录数据库主机的用户对该脚本有可执行权限。<ul><li>Windows OS支持的脚本类型为<span class="uicontrol">“.bat”</span>，如输入：<strong>C:\script.bat</strong>。</li><li>非Windows OS支持的脚本类型为<span class="uicontrol">“.sh”</span>，如输入：<strong>/opt/script.sh</strong>。<div class="note"><span class="notetitle"> 说明： </span><div class="notebody"><p>当配置了<span class="uicontrol">“<span>备份成功执行脚本</span>”</span>时，即使该脚本执行失败，管理界面上也会显示备份任务的状态为<span class="uicontrol">“<span>成功</span>”</span>。请您留意任务详情中是否有后置脚本执行失败的相关提示，如有请及时修正脚本。</p>
</div></div>
</li></ul>
</div>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.2.1.2.2.3.1.1 "><p><span>备份成功执行脚本</span></p>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.2.1.2.2.3.1.1 "><p><span>备份失败执行脚本</span></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</p></li><li id="ZH-CN_TOPIC_0000001792503842__li7527350315"><span>单击<span class="uicontrol" id="ZH-CN_TOPIC_0000001792503842__uicontrol471113581111">“确定”</span>。</span><p><p id="ZH-CN_TOPIC_0000001792503842__p25041111535">如果当前系统时间已晚于该SLA首次备份的开始时间，则关联备份SLA后可以选择在当前立即执行备份或者根据SLA中设置的备份策略等待下次调度。</p>
</p></li></ol>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">版权所有 &copy; 华为技术有限公司</div></body>
</html>